package com.awei.study.design.test;

import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * @Author liweilong
 * @Date 2024/7/23 18:59
 */

public class test {

    /**
     * 测试集合迭代器
     */
    @Test
    public void testCollectIterator() {
        ArrayList arrayList = new ArrayList();
        Iterator iterator = arrayList.iterator();
        if(iterator.hasNext()) {
            Object next = iterator.next();
        }
    }
}
